package com.session01;

public class Main {
    public static void main(String[] args) {
        Employee e = new Employee();
        e.name = "renjie";
        e.address = "成都市";
        e.SSN = 1010;
        e.number = 1;

        Employee e1 = e;
        if (e1.equals(e)) {
            System.out.println(e);
            System.out.println(e1);
        }


        Salary s = new Salary();
        s.name = "xiao";
        s.address = "成华区";
        s.mailCheck();
        s.salary = 240000.0f;
        float s1 = s.computePay();
        System.out.println(s1);


        Hourly h = new Hourly();
        h.name = "ji";
        h.address = "朗沃";
        h.mailCheck();
        h.hourlyRate = 500f;
        h.hoursWorked = 8f;
        float h1 = h.computePay();
        System.out.println(h1);

        System.out.println(e);
        System.out.println(h.toString());
    }
}
